<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>相邻兄弟选择器和伪元素</title>
    <style>



        /*
          * 伪元素：
          *  before
          *  after
        */

        li+li:before{
            display: inline-block;
            content: "/";
        }

        li{
            display: inline-block;
            width: 80px;
         /*
            float: left;*/
        }


        .price:before{
            display: inline-block;
            content: "$";
        }

        .email.qq:after{
            display: inline-block;
            content: "@qq.com";
        }
    </style>
</head>
<body>

<ol>
    <li><a href="#">主页</a></li>
    <li>项目1</li>
    <li>项目1-1</li>


    <div class="price">
        100

    </div>

    <div class="email qq">
        899899889
    </div>

</ol>
</body>
</html>